package com.gibs.peixunapi.model;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;
import java.util.Date;

/**
 * @author liangjiawei
 */
@EqualsAndHashCode(callSuper = true)
@Entity
//@Table(name = "AnswerSheet")
@Data
public class AnswerSheet extends BaseModel {	//答卷
	@OneToOne(cascade = CascadeType.REFRESH)
	private StudentAndExam studentAndExam;     //学生考试信息id
	@ManyToOne(cascade = CascadeType.REFRESH)
	private TestPaperSubject testPaperSubject;     //试卷题目id
	private String myAnswer;     //填写回答
	private Double score;     //得分
	@ManyToOne(cascade = CascadeType.REFRESH)
	private User markManId;     //批改人
	private Date markTime;     //批改时间


}

